package com.idanchuang.user.count.service.api.request.command.count;

import javax.validation.constraints.NotNull;

/**
 * @author Richard_yyf
 * @version 1.0 2021/5/21
 */
public class SceneCountIncrement {

    /**
     * 对应场景
     */
    @NotNull
    private String scene;

    /**
     * 递增量
     * 不设置时 默认为1
     * 递增量可以为正数，比如如1，则 count + 1
     * 递增量可以为负数，比如如-1，则 count - 1
     */
    private Integer incrementAmount;

    public SceneCountIncrement() {
    }

    public String getScene() {
        return scene;
    }

    public void setScene(String scene) {
        this.scene = scene;
    }

    public Integer getIncrementAmount() {
        return incrementAmount;
    }

    public void setIncrementAmount(Integer incrementAmount) {
        this.incrementAmount = incrementAmount;
    }

    @Override
    public String toString() {
        return "SceneCountIncrement{" +
                "scene='" + scene + '\'' +
                ", incrementAmount=" + incrementAmount +
                '}';
    }
}
